package jch.learn.java.advanced.chapter2_InputAndOutput.objectStream;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public class Manager extends Employee {

    private Employee secretary;

    public Manager(String name, double salary, int year, int month, int day) {
        super(name, salary, year, month, day);
        secretary = null;
    }

    public void setSecretary(Employee s) {
        secretary = s;
    }

    public String toString() {
        return super.toString() + "[secretary=" + secretary + "]";
    }

    public Manager() {
        super();
    }
}
